.class Lcom/example/m6wmr/ExchangeHistoryActivity$1;
.super Landroid/os/Handler;
.source "ExchangeHistoryActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/ExchangeHistoryActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/ExchangeHistoryActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    .line 130
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 14
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    .line 132
    iget v10, p1, Landroid/os/Message;->what:I

    packed-switch v10, :pswitch_data_0

    .line 243
    :cond_0
    :goto_0
    return-void

    .line 135
    :pswitch_0
    const-string v10, ">>>>>>>>>>>>>>>"

    iget-object v11, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->getJsonString:Ljava/lang/String;
    invoke-static {v11}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$2(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 136
    iget-object v10, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->getJsonString:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$2(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/lang/String;

    move-result-object v10

    const-string v11, ""

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-nez v10, :cond_0

    .line 141
    :try_start_0
    new-instance v5, Lorg/json/JSONObject;

    iget-object v10, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->getJsonString:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$2(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v5, v10}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 142
    .local v5, "jsonObject":Lorg/json/JSONObject;
    const-string v10, "msg"

    invoke-virtual {v5, v10}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v4

    .line 144
    .local v4, "jsonArray":Lorg/json/JSONArray;
    const/4 v3, 0x0

    .local v3, "i":I
    :goto_1
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v10

    if-lt v3, v10, :cond_1

    .line 169
    iget-object v10, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->h:Landroid/os/Handler;
    invoke-static {v10}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$3(Lcom/example/m6wmr/ExchangeHistoryActivity;)Landroid/os/Handler;

    move-result-object v10

    const/4 v11, 0x3

    invoke-virtual {v10, v11}, Landroid/os/Handler;->sendEmptyMessage(I)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 171
    .end local v3    # "i":I
    .end local v4    # "jsonArray":Lorg/json/JSONArray;
    .end local v5    # "jsonObject":Lorg/json/JSONObject;
    :catch_0
    move-exception v2

    .line 173
    .local v2, "e":Lorg/json/JSONException;
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0

    .line 145
    .end local v2    # "e":Lorg/json/JSONException;
    .restart local v3    # "i":I
    .restart local v4    # "jsonArray":Lorg/json/JSONArray;
    .restart local v5    # "jsonObject":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    invoke-virtual {v4, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v6

    .line 146
    .local v6, "jsonObject2":Lorg/json/JSONObject;
    const-string v10, "title"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 147
    .local v9, "title":Ljava/lang/String;
    const-string v10, "status"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 149
    .local v8, "status":Ljava/lang/String;
    const-string v10, "score"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 150
    .local v7, "score":Ljava/lang/String;
    const-string v10, "addtime"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 152
    .local v0, "addtime":Ljava/lang/String;
    new-instance v1, Lbean/IntegralHistroyBean;

    invoke-direct {v1}, Lbean/IntegralHistroyBean;-><init>()V

    .line 154
    .local v1, "bean":Lbean/IntegralHistroyBean;
    invoke-virtual {v1, v0}, Lbean/IntegralHistroyBean;->setAddtime(Ljava/lang/String;)V

    .line 155
    invoke-virtual {v1, v7}, Lbean/IntegralHistroyBean;->setScore(Ljava/lang/String;)V

    .line 156
    invoke-virtual {v1, v8}, Lbean/IntegralHistroyBean;->setStatus(Ljava/lang/String;)V

    .line 157
    invoke-virtual {v1, v9}, Lbean/IntegralHistroyBean;->setTitle(Ljava/lang/String;)V

    .line 159
    iget-object v10, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->beans:Ljava/util/List;
    invoke-static {v10}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$0(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/util/List;

    move-result-object v10

    invoke-interface {v10, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 144
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    .line 184
    .end local v0    # "addtime":Ljava/lang/String;
    .end local v1    # "bean":Lbean/IntegralHistroyBean;
    .end local v3    # "i":I
    .end local v4    # "jsonArray":Lorg/json/JSONArray;
    .end local v5    # "jsonObject":Lorg/json/JSONObject;
    .end local v6    # "jsonObject2":Lorg/json/JSONObject;
    .end local v7    # "score":Ljava/lang/String;
    .end local v8    # "status":Ljava/lang/String;
    .end local v9    # "title":Ljava/lang/String;
    :pswitch_1
    iget-object v10, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->getJsonString:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$2(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/lang/String;

    move-result-object v10

    const-string v11, ""

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-nez v10, :cond_0

    .line 188
    iget-object v10, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->beans:Ljava/util/List;
    invoke-static {v10}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$0(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/util/List;

    move-result-object v10

    invoke-interface {v10}, Ljava/util/List;->clear()V

    .line 191
    :try_start_2
    new-instance v5, Lorg/json/JSONObject;

    iget-object v10, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->getJsonString:Ljava/lang/String;
    invoke-static {v10}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$2(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v5, v10}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 192
    .restart local v5    # "jsonObject":Lorg/json/JSONObject;
    const-string v10, "msg"

    invoke-virtual {v5, v10}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v4

    .line 196
    .restart local v4    # "jsonArray":Lorg/json/JSONArray;
    const/4 v3, 0x0

    .restart local v3    # "i":I
    :goto_2
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v10

    if-lt v3, v10, :cond_2

    .line 215
    iget-object v10, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->h:Landroid/os/Handler;
    invoke-static {v10}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$3(Lcom/example/m6wmr/ExchangeHistoryActivity;)Landroid/os/Handler;

    move-result-object v10

    const/4 v11, 0x3

    invoke-virtual {v10, v11}, Landroid/os/Handler;->sendEmptyMessage(I)Z
    :try_end_2
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_1

    goto/16 :goto_0

    .line 217
    .end local v3    # "i":I
    .end local v4    # "jsonArray":Lorg/json/JSONArray;
    .end local v5    # "jsonObject":Lorg/json/JSONObject;
    :catch_1
    move-exception v2

    .line 219
    .restart local v2    # "e":Lorg/json/JSONException;
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    goto/16 :goto_0

    .line 197
    .end local v2    # "e":Lorg/json/JSONException;
    .restart local v3    # "i":I
    .restart local v4    # "jsonArray":Lorg/json/JSONArray;
    .restart local v5    # "jsonObject":Lorg/json/JSONObject;
    :cond_2
    :try_start_3
    invoke-virtual {v4, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v6

    .line 198
    .restart local v6    # "jsonObject2":Lorg/json/JSONObject;
    const-string v10, "title"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 199
    .restart local v9    # "title":Ljava/lang/String;
    const-string v10, "status"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 201
    .restart local v8    # "status":Ljava/lang/String;
    const-string v10, "score"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 202
    .restart local v7    # "score":Ljava/lang/String;
    const-string v10, "addtime"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 204
    .restart local v0    # "addtime":Ljava/lang/String;
    new-instance v1, Lbean/IntegralHistroyBean;

    invoke-direct {v1}, Lbean/IntegralHistroyBean;-><init>()V

    .line 206
    .restart local v1    # "bean":Lbean/IntegralHistroyBean;
    invoke-virtual {v1, v0}, Lbean/IntegralHistroyBean;->setAddtime(Ljava/lang/String;)V

    .line 207
    invoke-virtual {v1, v7}, Lbean/IntegralHistroyBean;->setScore(Ljava/lang/String;)V

    .line 208
    invoke-virtual {v1, v8}, Lbean/IntegralHistroyBean;->setStatus(Ljava/lang/String;)V

    .line 209
    invoke-virtual {v1, v9}, Lbean/IntegralHistroyBean;->setTitle(Ljava/lang/String;)V

    .line 211
    iget-object v10, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->beans:Ljava/util/List;
    invoke-static {v10}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$0(Lcom/example/m6wmr/ExchangeHistoryActivity;)Ljava/util/List;

    move-result-object v10

    invoke-interface {v10, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_1

    .line 196
    add-int/lit8 v3, v3, 0x1

    goto :goto_2

    .line 231
    .end local v0    # "addtime":Ljava/lang/String;
    .end local v1    # "bean":Lbean/IntegralHistroyBean;
    .end local v3    # "i":I
    .end local v4    # "jsonArray":Lorg/json/JSONArray;
    .end local v5    # "jsonObject":Lorg/json/JSONObject;
    .end local v6    # "jsonObject2":Lorg/json/JSONObject;
    .end local v7    # "score":Ljava/lang/String;
    .end local v8    # "status":Ljava/lang/String;
    .end local v9    # "title":Ljava/lang/String;
    :pswitch_2
    iget-object v10, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    new-instance v11, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;

    iget-object v12, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    const/4 v13, 0x0

    invoke-direct {v11, v12, v13}, Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;-><init>(Lcom/example/m6wmr/ExchangeHistoryActivity;Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;)V

    invoke-static {v10, v11}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$4(Lcom/example/m6wmr/ExchangeHistoryActivity;Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;)V

    .line 233
    iget-object v10, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->xlv_integral_history:Lcom/wmr/Lstview/XListView;
    invoke-static {v10}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$5(Lcom/example/m6wmr/ExchangeHistoryActivity;)Lcom/wmr/Lstview/XListView;

    move-result-object v10

    iget-object v11, p0, Lcom/example/m6wmr/ExchangeHistoryActivity$1;->this$0:Lcom/example/m6wmr/ExchangeHistoryActivity;

    # getter for: Lcom/example/m6wmr/ExchangeHistoryActivity;->adapter:Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;
    invoke-static {v11}, Lcom/example/m6wmr/ExchangeHistoryActivity;->access$6(Lcom/example/m6wmr/ExchangeHistoryActivity;)Lcom/example/m6wmr/ExchangeHistoryActivity$MyAdapter;

    move-result-object v11

    invoke-virtual {v10, v11}, Lcom/wmr/Lstview/XListView;->setAdapter(Landroid/widget/ListAdapter;)V

    goto/16 :goto_0

    .line 132
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method
